package cn.com.shopec.erp.product.service;

import java.util.List;

import cn.com.shopec.erp.common.page.PageFinder;
import cn.com.shopec.erp.common.page.PageQuery;
import cn.com.shopec.erp.product.entity.Defective;
import cn.com.shopec.erp.product.vo.DefectiveVo;

/**
 * @ClassName: IProdDefective
 * @Description: 次品的Service
 * @author: LiangShunWang
 * @date: 2016-11-21 下午16:40:13
 */
public interface IDefectiveService {

	/**
     * 
     * @Title: getPagedBrandList
     * @Description: 分页查询次品信息
     * @param brandVo
     * @param pageQuery
     * @return
     * @throws
     * @author: LiangShunWang
     * @date: 2016-11-21下午16:52:05
     */
	 public PageFinder<DefectiveVo> getPagedBrandList(DefectiveVo defectiveVo, PageQuery pageQuery) throws Exception;
	 
	 
	 /**
	     * 
	     * @Title: getPagedBrandList
	     * @Description: 分页查询次品信息
	     * @param brandVo
	     * @param pageQuery
	     * @return
	     * @throws
	     * @author: LiangShunWang
	     * @date: 2016-11-21下午16:52:05
	     */
		 public PageFinder<DefectiveVo> getPagedBrandHistoryList(DefectiveVo defectiveVo, PageQuery pageQuery) throws Exception;

	 
	 /**
     * 
     * @Title: addBrand
     * @Description: 添加次品信息
     * @param brandVo
     * @throws
     * @author: duhui
     * @date: 2013-5-26下午04:15:58
     */
    public void addDefective(List<Defective> defectiveVo) throws Exception;
    
    /**
     * 
     * @Title: updateBrand
     * @Description: 修改次品信息
     * @param brandVo
     * @return
     * @throws
     * @author: duhui
     * @date: 2013-5-26下午04:17:40
     */
    public boolean updateDefective(DefectiveVo defectiveVo) throws Exception;
    
    /**
     * 
     * @Title: delDefective
     * @Description: 删除次品信息
     * @param brandVo
     * @return
     * @throws
     * @author: LiangShunWang
     * @date: 2013-5-26下午04:25:58
     */
    public void delDefective(String id) throws Exception;
    
    /**
     * 
     * @Title: getBrand
     * @Description: 根据编号查询次品信息
     * @param productId
     * @throws Exception
     * @throws
     * @author: LiangShunWang
     * @date: 2013-5-26下午05:02:06
     */
    public DefectiveVo getDefective(String defectiveId) throws Exception;

    /**
     * 审核次品
     * @param defectiveId
     * @throws Exception 
     */
	public boolean aduitDefective(String defectiveId) throws Exception;
}
